//
//  SkuSelectView.h
//  Yueshi
//
//  Created by Northwan on 15/9/8.
//  Copyright (c) 2015年 悦食中国 All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YSSubProduct.h"

@protocol SkuSelectViewDelegate <NSObject>
@optional
-(void)skuBtnClickWithId:(NSInteger)tag isCanbuy:(BOOL)isCanbuy;
@end

@interface SkuSelectView : UIView
@property (weak, nonatomic)id<SkuSelectViewDelegate> delegate;

-(instancetype)initWithProdSubArray:(NSArray *)array;
-(YSSubProduct *)getSelectProdSub;
-(NSUInteger)getSelectIndex;
-(BOOL)hasOneChecked;
-(void)clearSelected;

@end
